package portal.pubimpl.system.pf;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import portal.pubitf.system.IMenuMapper;
import portal.pubitf.system.pf.IMenuService;
import portal.pubvo.system.MenuVo;

@Service("menuServiceImpl")
public class MenuServiceImpl implements IMenuService {

	@Autowired
	private IMenuMapper menuMapper;
	
	@Override
	public MenuVo getById(String id) {
		return menuMapper.getById(id);
	}

	@Override
	public List<MenuVo> getAll() {
		return menuMapper.getAll();
	}

	@Override
	public List<MenuVo> getPagesByWhere(String queryWhere) {
		return menuMapper.getPagesByWhere(queryWhere);
	}

	@Override
	public Integer getPagesTotalByWhere(String queryWhere) {
		return menuMapper.getPagesTotalByWhere(queryWhere);
	}

	@Override
	public int insert(MenuVo vo) {
		return menuMapper.insert(vo);
	}

	@Override
	public int update(MenuVo vo) {
		return menuMapper.update(vo);
	}

	@Override
	public List<MenuVo> getAllByWhere(String queryWhere) {
		return menuMapper.getAllByWhere(queryWhere);
	}

}
